<?php
/**
 * Created by PhpStorm.
 * User: teddy
 * Date: 17-10-19
 * Time: 下午3:36
 */

if(session_status() != PHP_SESSION_ACTIVE) {
    session_start();
}
if(isset($_SESSION["usr"])) {
    $currentUser = $_SESSION["usr"];
    echo "<input type='hidden' name='usr' id='usr' value='$currentUser' > ";
}
?>
<!--HTML-->
<html lang="zh-CN">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="YPP API Test Case">
        <meta name="author" content="Long Yiqun">
        <!--ICON-->
        <link rel="icon" href="favicon.ico" type="image/x-icon" />
        <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
        <!--Title-->
        <title>YPP API Test Case</title>
        <!--BootStrap Component-->
        <link href="css/bootstrap.min.css" rel="stylesheet">
        <link href="css/bootstrap-theme.min.css" rel="stylesheet">
        <link href="css/bootstrap-table.min.css" rel="stylesheet" >
        <link href="css/theme.css" rel="stylesheet" >
        <!--BootStrap Select-->
        <link href="css/bootstrap-select.css" rel="stylesheet" >
    </head>

    <body role="document">
        <!--fixed nav bar-->
        <nav class="navbar navbar-inverse navbar-fixed-top">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand" href="index.php">YPP</a>
                </div>
                <div id="navbar" class="navbar-collapse collapse">
                    <ul class="nav navbar-nav">
                        <li class="active"><a href="index.php">Home</a></li>

                    </ul>
                </div>
            </div>
        </nav>
        <!--Header Image-->
        <header class="sb-page-header">
            <div class="container">
                <h1>YPP API Test Case</h1>
                <p>Only For Java API...</p>
            </div>
        </header>
        <div class="container" role="main">

            <!--Case List-->
            <div class="row">
                <table id="JobTable" style="white-space: pre;"
                       data-toggle="table"
                       data-search="true"
                       data-url="getTestCase.php"
                       data-sort-name="id"
                       data-sort-order="desc"
                       data-pagination="true"
                       data-detail-view="true"
                       data-detail-formatter="detailFormatter"
                       data-row-style="rowStyle">
                    <thead>
                    <tr>
                        <th data-sortable="true" data-halign="center" data-align="center" data-field = "id">CaseID</th>
                        <th data-halign="center" data-align="center" data-field= "chinese">Name</th>
                        <th data-sortable="true" data-halign="center" data-align="center" data-field= "version">Version</th>
                        <th data-sortable="true" data-halign="center" data-align="center" data-field= "url">URL</th>
                        <th data-sortable="true" data-halign="center" data-align="center" data-field= "name">Method</th>
                        <th data-visible="false" data-sortable="true" data-halign="center" data-align="center" data-field= "body">Body</th>
                        <th data-sortable="true" data-halign="center" data-align="center" data-field= "shouldbe">ShouldBe</th>
                        <th data-sortable="true" data-halign="center" data-align="center" data-field= "author">Author</th>
                        <th data-sortable="true" data-halign="center" data-align="center" data-field= "type">Type</th>
                    </tr>
                    </thead>
                </table>
            </div>

            <!--Report Wall-->
            <div class="well well-lg">
                <img src="images/analytics.png" width="32">
                &nbsp;
                <a href="http://sonar.yupaopao.cn:1337" target="_blank" class="alert-link">点此查看每日Case运行报告</a>
            </div>

        </div>



        <!--Footer-->
        <footer class="bs-docs-footer" role="contentinfo">
            <div class="container">
                <hr>
                <p>Maintained by <a href="index.php">YPP Test Team</a>&nbsp;&nbsp;<img src="images/yupaopao.png" width="24px"> </p>
                <p>Copyright © 2017 <a href="index.php">YPP</a>. All Rights Reserved</p>
            </div>
        </footer>
        <!--JS LOAD-->
        <script src="js/jquery.min.js"></script>
        <script data-pace-options='{ "document": true }' src="js/pace.min.js"></script>
        <script src="js/bootstrap.min.js"></script>
        <script src="js/bootstrap-table.js"></script>
        <script src="js/bootstrap-select.js"></script>
        <script src="js/Job.js"></script>
    </body>
</html>

